<html>
<head>
<script>
    function startApp() {
    var evt = document.createEvent("CustomEvent");
        evt.initCustomEvent('NativeCallEvent', true, false, "call success");
        document.dispatchEvent(evt);
    }
</script>
</head>

<body>
    <button type="button" onClick="startApp()" id="startApp">调用本地程序</button>
</body>

</html>